// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_g;

import android.util.Log;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

// Referenced classes of package com.nnee.g:
//            b

class cls_a extends Thread
{

    cls_a(cls_b b1)
    {
    	 super();
        c = b1;
       
        b = false;
    }

    public void a()
    {
        com.nnee.p_g.cls_b.e("PaintLogThread:", "shutdown");
        b = true;
        if(a != null)
        {
            a.destroy();
            a = null;
        }
    }

    public void run()
    {
        BufferedReader bufferedreader;
        com.nnee.p_g.cls_b.e("PaintLogThread:", "start");
        ArrayList arraylist = new ArrayList();
        arraylist.add("logcat");
        arraylist.add("-v");
        arraylist.add("time");
        try {
			a = Runtime.getRuntime().exec((String[])arraylist.toArray(new String[arraylist.size()]));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        bufferedreader = new BufferedReader(new InputStreamReader(a.getInputStream()));

        String s=null;
        do
        {
            if(b)
                break;
            try {
				s = bufferedreader.readLine();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
            if(s == null || cls_b.h == null)
                continue;
            com.nnee.p_g.cls_b.a("SysLog", s, 2);
        } while(true);
         
        do
        {
            try
            {
                bufferedreader.close();
                if(a != null)
                    a.destroy();
                a = null;
                cls_b.l = null;
            }
            // Misplaced declaration of an exception variable
            catch(Exception exception)
            {
                exception.printStackTrace();
                Log.d("NTLog", (new StringBuilder()).append("logcatToFile Exception:").append(exception.toString()).toString());
            }
            return;
        } while(s == null);
 
    }

    Process a;
    boolean b;
    final cls_b c;
}
